// let baseUrl='http://localhost:5050'
let baseUrl='http://159.75.188.224:5050'
export const request= (options)=>{
	// console.log(222,uni.getStorageSync('user'
	// ))
	 return new Promise((resolve, reject) => {
		 let token='Bearer '+uni.getStorageSync('user')?.token
	        uni.request({
	            url: baseUrl+options.url,
	            method: options.method || 'GET',
				data:options.data,
				header:{token,authorization:token},
	            success: (res) => {
	                resolve(res);
	            },
	            fail: (err) => {
	                reject(err);
	            }
	        });
	    });
}